package com.stanford.ml.svm;

/**
 * Model is an objective function that includes the kernel
 * @author Fatih Sunor
 *
 */
public class Model extends Problem{

	private double [] _alpha;
	private double _b;
	private Kernel _kernel; 
	
	/**
	 * @return the alpha
	 */
	public double[] getAlpha() {
		return _alpha;
	}

	/**
	 * @param alpha the alpha to set
	 */
	public void setAlpha(double[] alpha) {
		_alpha = alpha;
	}

	/**
	 * @return the b
	 */
	public double getB() {
		return _b;
	}

	/**
	 * @param b the b to set
	 */
	public void setB(double b) {
		_b = b;
	}
	
	/**
	 * Returns model's kernel
	 * @return model's kernel
	 */
	public Kernel getKernel(){
		return _kernel;
	}
	
	/**
	 * Sets model's kernel
	 * @param kernel
	 */
	public void setKernel(Kernel kernel){
		_kernel = kernel;
	}
}
